import request from "@/utils/request";

//发起登录api
export function loginApi(data) {
  return request({
    url: "/sys/login",
    method: "post",
    data,
  });
}

//获取用户数据api
export function getInfo() {
  return request({
    url: "/sys/profile",
    method: "get",
  });
}

//修改用户密码
export function changePwd(data) {
  return request({
    url: "/sys/user/updatePass",
    method: "put",
    data,
  });
}
